/// Hotspot is a simple struct defined by a coordinate and a destination screen
/// Optionally you can set a navbar screen
public class Hotspot
{
	int 	top;
	int 	left;
	int 	bottom;
	int 	right;
	Screen	screen;
	Screen	navbar;
	
	public Hotspot(int _left, int _top, int _right, int _bottom, Screen _screen, Screen _navbar)
	{
		top 	= _top;
		left 	= _left;
		bottom 	= _bottom;
		right 	= _right;
		screen	= _screen;
		navbar	= _navbar;
	}
	
	public Hotspot(int _left, int _top, int _right, int _bottom, Screen _screen)
	{
		top 	= _top;
		left 	= _left;
		bottom 	= _bottom;
		right 	= _right;
		screen	= _screen;
		navbar	= null;
	}
	
	public boolean contains(int x, int y)
	// josh I just switched the x, y here
	{
		return (x >= left &&
				x <= right &&
				y >= top &&
				y <= bottom);
	}
}